package com.wash.car.biz.impl;

import com.wash.car.biz.AdminUserServer;
import com.wash.car.dao.domain.AdminUserDomain;
import com.wash.car.dao.mapper.AdminUserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class AdminUserServerImpl implements AdminUserServer {

    @Resource
    private AdminUserMapper adminUserMapper;

    @Override
    public AdminUserDomain login(String username, String password) {
        return adminUserMapper.login(username, password);
    }

    @Override
    public void setPwd(Long id, String password) {
        adminUserMapper.updateAdminUserPwd(id, password);
    }
}
